from common.myhttp import Request
from biz.urls import ServerUrls
class User:#一个模块的接口写一个文件
    @staticmethod
    def login(username,password):#被测函数
        data={"username":username,"password":password}
        req=Request(url=ServerUrls.login_url,data=data)
        return req.post()

    # @staticmethod
    # def register(username, password):  # 被测函数
    #     data = {"username": username, "password": password}
    #     req = Request(ServerUrls.login_url, data)
    #     return req.get()  # get请求